package cn.ywsj.ywsjmidtier.service;

import cn.ywsj.ywsjmidtier.common.Connect;
import com.alibaba.fastjson.JSONObject;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.util.MultiValueMap;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

@Api(tags = "企业信息")
@FeignClient(url = Connect.XSX_URL,name = "xsx")
public interface WechatCompanyFeign {

    /**
     * 企业资料_保存
     * @param
     * @return
     */
    @ApiOperation("企业资料_保存")
    @PostMapping("/wechat/member/companymgr/ajaxupdatecompany")
    String updateCompany (@RequestParam("jsonObject")JSONObject jsonObject);

    /**
     * 企业资料_企业详情
     * @return
     */
    @ApiOperation("企业资料_企业详情")
    @PostMapping("/wechat/member/companymgr/companydetail")
    String companyDetail (@RequestParam("request") HttpServletRequest request,@RequestParam("response") HttpServletResponse response);
}
